package com.example.brazil_project;

import java.util.ArrayList;
import java.util.List;

import com.example.brazil_project.function.DucumentFunction;
import com.example.brazil_project.function.LoginFunction;
import com.example.brazil_project.function.Public_method;
import com.example.brazil_project.util.WebviewSetting;











import android.app.Activity;
import android.os.Bundle;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;

public class Arrive_CabinetActivity extends Activity {
	 private ViewPager viewPager;  //对应的viewPager 
	  private List<View> viewList;//view数组 
	  WebView webview =null;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		 webview = WebviewSetting.getWebview(this,"file:///android_asset/arrive_cabinet.html");
		
		setContentView(webview);
		
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		// Handle action bar item clicks here. The action bar will
		// automatically handle clicks on the Home/Up button, so long
		// as you specify a parent activity in AndroidManifest.xml.
		int id = item.getItemId();
		if (id == R.id.action_settings) {
			return true;
		}
		return super.onOptionsItemSelected(item);
	}
	
	@Override
	public void onBackPressed() {
		 webview.loadUrl("javascript:onBackPressed()");

	}
}
